#include "tcpserver.hpp"
#include <memory>

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        cout << "has return" << endl;
        return 1;
    }
    //
    uint16_t port = stoi(argv[1]);

    unique_ptr<TcpServer> tcpsvr(new TcpServer(port));
    tcpsvr->InitServer();
    tcpsvr->Start();

    return 0;
}